<?php
/*
 * Created on Apr 19, 2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<div align="center" style="margin-top:10px;">
	<table cellspacing="0" cellpadding="0" border="1">
		<tr>
			<td align="center">Ranking</td>
			<td align="center">Player</td>
			<td align="center">Appearance</td>
		</tr>
		<?php if(count($playerList) > 0){
			$counter = 0;
			foreach($playerList as $player){
				$counter++;?>
			<tr>
				<?php 
					printf("<td align=\"center\">%s</td>",$counter);
					printf("<td align=\"center\"><a href=\"?viewProfile&playerid=%s\">%s %s</a></td>",$player->playerid,$player->firstName,$player->lastName);
					printf("<td align=\"center\">%s</td>",$player->appearance);
				?>
			</tr>
			<?php }	
		 }else{?>
			<tr>
				<td align="center" colspan="3">
					<h4>No records available.</h4>
				</td>
			</tr>
		<?php }?>
	</table>
</div>